#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int titleToNumber(char* columnTitle)
{
    int ret = 0;
    long count = 1;
    for (int i = strlen(columnTitle) - 1; i >= 0; i--)
    {
        int mid = columnTitle[i] + 1 - 'A';
        ret += mid * count;
        count *= 26;
    }
    return ret;
}
